import request from '@/utils/request'

// 目标配置列表
export function queryGoodsTargetConfigList(data) {
  return request({
    url: '/v1/goods/goods-target-config/list',
    method: 'POST',
    data
  })
}

// 新增目标配置
export function createGoodsTargetConfig(data) {
  return request({
    url: '/v1/goods/goods-target-config/create',
    method: 'POST',
    data
  })
}

// 编辑目标配置
export function editGoodsTargetConfig(data) {
  return request({
    url: '/v1/goods/goods-target-config/edit',
    method: 'POST',
    data
  })
}

// 变更状态
export function setStausGoodsTargetConfig(data) {
  return request({
    url: '/v1/goods/goods-target-config/change-status',
    method: 'POST',
    data
  })
}